<?php
include '../conn.php';
$pageRange=mysqli_num_rows(mysqli_query($link,"select * from tb_news where state = 1 and categoryNo=".$_POST['cateNo']));
echo $pageRange;